package com.tsj.spzx.user.openFeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "sms-service", url = "https://gyytz.market.alicloudapi.com")
public interface SMessageFeign {

    @PostMapping("/sms/smsSend")
    String sendMessage(@RequestHeader("Authorization") String Authorization,
                       @RequestParam("param") String param,
                       @RequestParam("mobile") String phone,
                       @RequestParam("smsSignId") String smsSignId,         // 短信签名 ID
                       @RequestParam("templateId") String templateId        // 短信模板 ID
    );
}
